home *** CD-ROM | disk | FTP | other *** search
- Path: goanna.cs.rmit.EDU.AU!not-for-mail
- From: ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2
- Subject: Re: Hungarian notation - whoops!
- Date: 8 Feb 1996 16:19:35 +1100
- Organization: Comp Sci, RMIT, Melbourne, Australia
- Message-ID: <4fc157$jsf@goanna.cs.rmit.EDU.AU>
- References: <30C40F77.53B5@swsbbs.com> <Pine.HPP.3.91.960124153551.24374C-100000@zeezrom.cs.byu.edu> <4e7ifl$et3@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960129133429.8419C-100000@foggy.cs.byu.edu> <4em29qINN39r@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960201015336.17360C-100000@clear.cs.byu.edu> <4f41vf$g8j@goanna.cs.rmit.EDU.AU> <Pine.HPP.3.91.960205124102.18647E-100000@warm.cs.byu.edu>
- NNTP-Posting-Host: goanna.cs.rmit.edu.au
- NNTP-Posting-User: ok
- X-Newsreader: NN version 6.5.0 #0 (NOV)
-
- Douglas Evan Cook <cookd@cs.byu.edu> writes:
- >Actually, if you consider the following as an ADT, it does, and it makes
- >things very nice:
- >TYPE INT16:
- > Holds numbers from -32768 to 32767, stored in 16 bits, little-endian.
-
- How often do I have to say this?
-
- - ADT means >>>>>>>>>>>>>>>>ABSTRACT<<<<<<<<<<<<<<<< data type
- - bit size is CONCRETE
- - endianness is CONCRETE
-
-
- >Then, when porting to a different platform, you just do whatever it takes
- >to define INT16 to match the spec.
-
- How often do I have to say _this_?
-
- - There are two (16Mb, recent) computers on my desk. (One will be going
- away soon.)
- - There are two other computers in this office. One needs repair, but
- has the nicest keyboard I've ever used, and the other needs a 240 volt
- to 110 volt transformer which I loaned to a friend.
- - I have accounts on three (large, recent) multi-user machines in this
- department, and am posting from one of them at the moment.
-
- *NONE* of these machines can support a 16-bit little-endian integer type.
-
- I _could_ get an account on a supercomputer if I wanted to. I have also
- used a couple of mainframes. None of them can support a 16-bit little-
- endian integer type either. One of the mainframes was not 2s complement
- (it was sign-and-magnitude; I still think having a negative number whose
- absolute value can't be represented is _silly_). That kind of mainframe
- is still made and still used and still appropriate.,
-
- Abstract data types are where you HIDE the implementation details
- so that your program doesn't depend on the implementation details
- so that your program will work on a machine with different implementation
- details.
-
- --
- "conventional orthography is ... a near optimal system for the
- lexical representation of English words." Chomsky & Halle, S.P.E.
- Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.
-